package com.sale.system.dubbo;

import com.sale.system.api.RemoteMenuService;
import com.sale.system.service.ISysMenuService;
import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

/**
 * 菜单服务
 */
@RequiredArgsConstructor
@DubboService
@Service
public class RemoteMenuServiceImpl implements RemoteMenuService {

    private final ISysMenuService menuService;

    /**
     * 根据菜单名称查询id
     */
    @Override
    public Long getIdByMenuName(String menuName) {
        return menuService.getIdByMenuName(menuName);
    }
}
